<script xmlns="http://www.w3.org/1999/html">
export default {
  name: "o"
}
</script>

<template>
  <h1>EL-选择按钮</h1>
  <el-select v-model="city" style="width: 50%"  placeholder="请选择城市">
  <el-option label="北京" value="bj"></el-option>
  <el-option label="上海" value="sh"></el-option>
  <el-option label="深圳" value="sz"></el-option>
  <el-option label="广州" value="gz"></el-option>
  </el-select>
</template>
<h4>提交的值：{{city}}</h4>
<script setup>
import {ref} from "vue";
const  city = ref ("bj");
</script>

<style scoped>

</style>